package kr.saeildamil.androidstudy;

import kr.saeildamil.androidstudty.R;
import kr.saeildamil.androidstudty.ch04.ButtonAndEditText;
import kr.saeildamil.androidstudty.ch04.ImageViewTest;
import kr.saeildamil.androidstudty.ch05.GravityEx1;
import kr.saeildamil.androidstudty.ch05.PaddingEx;
import kr.saeildamil.androidstudty.ch05.RelativeEx;
import kr.saeildamil.androidstudty.ch06.InflationEx;
import kr.saeildamil.androidstudty.ch07.CustomViewEx;
import kr.saeildamil.androidstudty.ch07.DrawBitmapEx;
import kr.saeildamil.androidstudty.ch07.ToastLayoutEx;
import kr.saeildamil.androidstudty.ch07.Vibrate;
import kr.saeildamil.androidstudty.ch08.Ch08Main;
import kr.saeildamil.androidstudty.ch09.Ch09Main;
import kr.saeildamil.androidstudty.ch11.Ch11Main;
import kr.saeildamil.androidstudty.ch12.Ch12Main;
import kr.saeildamil.androidstudty.ch13.Ch13Main;
import kr.saeildamil.androidstudty.ch14.Ch14Main;
import kr.saeildamil.androidstudty.ch16.Ch16Main;
import kr.saeildamil.androidstudty.ch17.Ch17Main;
import kr.saeildamil.androidstudty.ch18.Ch18Main;
import kr.saeildamil.androidstudty.ch19.Ch19Main;
import kr.saeildamil.androidstudty.exam.MultiPage;
import kr.saeildamil.androidstudty.exam.NameCardLeeminji;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
	}

	public void mOnClick(View v) {
		switch (v.getId()) {
		case R.id.btnandedit_btn:
			startActivity(new Intent(this, ButtonAndEditText.class));
			break;
		case R.id.imageviewtest_btn:
			startActivity(new Intent(this, ImageViewTest.class));
			break;
		case R.id.main_weight_btn:
			startActivity(new Intent(this, GravityEx1.class));
			break;
		case R.id.main_padding:
			startActivity(new Intent(this, PaddingEx.class));
			break;
		case R.id.main_relative_btn:
			startActivity(new Intent(this, RelativeEx.class));
			break;
		case R.id.main_leeminjee_btn:
			startActivity(new Intent(this, NameCardLeeminji.class));
			break;
		case R.layout.multipage:
			startActivity(new Intent(this, MultiPage.class));
			break;
		case R.id.main_inflation_btn:
			startActivity(new Intent(this, InflationEx.class));
			break;
		case R.id.main_customview:
			startActivity(new Intent(this, CustomViewEx.class));
			break;
		case R.id.main_Drawbit_btn:
			startActivity(new Intent(this, DrawBitmapEx.class));
			break;
		case R.id.main_toastlayout_btn:
			startActivity(new Intent(this, ToastLayoutEx.class));
			break;
		case R.id.vibrate:
			startActivity(new Intent(this, Vibrate.class));
			break;
		case R.id.main_ch08_btn:
			startActivity(new Intent(this, Ch08Main.class));
			break;
		case R.id.main_ch09_btn:
			startActivity(new Intent(this, Ch09Main.class));
			break;
		case R.id.main_ch11_btn:
			startActivity(new Intent(this, Ch11Main.class));
			break;
		case R.id.main_ch12_btn:
			startActivity(new Intent(this, Ch12Main.class));
			break;
		case R.id.main_ch13_btn:
			startActivity(new Intent(this, Ch13Main.class));
			break;
		case R.id.main_ch14_btn:
			startActivity(new Intent(this, Ch14Main.class));
			break;
		case R.id.main_ch16_btn:
			startActivity(new Intent(this, Ch16Main.class));
			break;
		case R.id.main_ch17_btn:
			startActivity(new Intent(this, Ch17Main.class));
			break;
		case R.id.main_ch18_btn:
			startActivity(new Intent(this, Ch18Main.class));
			break;
		case R.id.main_ch19_btn:
			startActivity(new Intent(this, Ch19Main.class));
			break;
		
		}

	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

}
